/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.property.buildinfo.entity;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

import com.google.common.collect.Lists;
import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import com.jeeplus.modules.property.subinfo.entity.PropertyCarinfo;
import com.jeeplus.modules.property.subinfo.entity.PropertyHouseinfo;
import com.jeeplus.modules.sys.entity.Office;

/**
 * 楼宇信息Entity
 * @author 陈龙
 * @version 2019-01-04
 */
public class PropertyBuildinginfo extends DataEntity<PropertyBuildinginfo> {
	
	private static final long serialVersionUID = 1L;
	private Office village;		// 小区编号 父类
	private String buildingname;		// 楼宇名称
	private String floornum;		// 楼层数
	private String floorromenum;		// 楼层房屋数
	private Date builddate;		// 建成时间
	private String buildingtype;		// 楼宇类型
	private String buildinguse;		// 楼宇用途
	private String buildingstructure;		// 楼宇结构
	private List<PropertyCarinfo> propertyCarinfoList = Lists.newArrayList();		// 子表列表
	private List<PropertyHouseinfo> propertyHouseinfoList = Lists.newArrayList();		// 子表列表

	public List<PropertyCarinfo> getPropertyCarinfoList() {
		return propertyCarinfoList;
	}

	public PropertyBuildinginfo() {
		super();
	}

	public PropertyBuildinginfo(String id){
		super(id);
	}

	public PropertyBuildinginfo(Office village){
		this.village = village;
	}

	public Office getVillage() {
		return village;
	}

	public void setVillage(Office village) {
		this.village = village;
	}
	
	@ExcelField(title="楼宇名称", align=2, sort=2)
	public String getBuildingname() {
		return buildingname;
	}

	public void setBuildingname(String buildingname) {
		this.buildingname = buildingname;
	}
	
	@ExcelField(title="楼层数", align=2, sort=3)
	public String getFloornum() {
		return floornum;
	}

	public void setFloornum(String floornum) {
		this.floornum = floornum;
	}
	
	@ExcelField(title="楼层房屋数", align=2, sort=4)
	public String getFloorromenum() {
		return floorromenum;
	}

	public void setFloorromenum(String floorromenum) {
		this.floorromenum = floorromenum;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="建成时间", align=2, sort=5)
	public Date getBuilddate() {
		return builddate;
	}

	public void setBuilddate(Date builddate) {
		this.builddate = builddate;
	}
	
	@ExcelField(title="楼宇类型", dictType="buildingtype", align=2, sort=12)
	public String getBuildingtype() {
		return buildingtype;
	}

	public void setBuildingtype(String buildingtype) {
		this.buildingtype = buildingtype;
	}
	
	@ExcelField(title="楼宇用途", dictType="buildinguse", align=2, sort=13)
	public String getBuildinguse() {
		return buildinguse;
	}

	public void setBuildinguse(String buildinguse) {
		this.buildinguse = buildinguse;
	}
	
	@ExcelField(title="楼宇结构", dictType="buildingstructure", align=2, sort=14)
	public String getBuildingstructure() {
		return buildingstructure;
	}

	public void setBuildingstructure(String buildingstructure) {
		this.buildingstructure = buildingstructure;
	}

	public void setPropertyCarinfoList(List<PropertyCarinfo> propertyCarinfoList) {
		this.propertyCarinfoList = propertyCarinfoList;
	}

	public List<PropertyHouseinfo> getPropertyHouseinfoList() {
		return propertyHouseinfoList;
	}

	public void setPropertyHouseinfoList(List<PropertyHouseinfo> propertyHouseinfoList) {
		this.propertyHouseinfoList = propertyHouseinfoList;
	}
}